package com.example.moon.javabean;

/**
 * @author  simple
 * Person类就是一个最简单的JavaBean
 */
public class Person {
    //姓名String类型
    private String name="SimpleLee";
    //性别String类型
    private String sex="女";
    //年龄int类型
    private int age=30;
    //是否已婚boolean类型
    private boolean married=true;

    /**
     * 无参数构造方法
     */
    public Person(){
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isMarried() {
        return married;
    }

    public void setMarried(boolean married) {
        this.married = married;
    }
}
